import ajax from "@/utils/request";
import '../mock/loginMock'

// 登录
export function loginFn(data) {
    return ajax({
        url:'/user/login',
        method:'post',
        data
    })
}

// 退出登录
export function logoutFn() {
    return ajax({
        url:'/user/logout',
        method:'post',
    })
}